<html> 
    <head>  <title>Servlet 上传文件</title></head> 
    <body > 
      <form name="uploadForm" method="POST" 
        enctype="MULTIPART/FORM-DATA" 
        action="upload">
          <br>
              Title1:<input type="text" name="title1" size="30"/>
              Image1:<input type="file" name="img1" size="30"/>
          </br>
          <br>
              Title2:<input type="text" name="title2" size="30"/>
              Image2:<input type="file" name="img2" size="30"/>
          </br>
          <br>
              Title3:<input type="text" name="title3" size="30"/>
              Image3:<input type="file" name="img3" size="30"/>
          </br>
          <br>
            <input type="submit" name="submit" value="upload">
          </br>
          <br>
            <input type="reset" name="reset" value="reset">
          </br>
      </form>
      <ul>
        {% for item in carousels %}
        <li>{{ item.get('content') }}</li>
        {% endfor %}
      </ul>
    </body> 
</html> 